package com.gitee.yzycoc;

import com.yzycoc.processor.event.Event;
import com.yzycoc.processor.event.EventPrivateMessage;
import com.yzycoc.processor.event.EventPublicMessage;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * 驱动
 * 创建时间： 2023/5/19
 *
 * @author yzy
 * @version 1.0
 **/
@Slf4j
public class SdkEvent implements Event {

    @Override
    public void eventPublicMessage(EventPublicMessage eventPublicMessage) {
        //群 聊天消息
        String msg = eventPublicMessage.getMsg();
        //回复应答内容
        BotDriver.API.sendPublicMsg(msg, eventPublicMessage);

    }

    @Override
    public void eventPrivateMessage(EventPrivateMessage eventPrivateMessage) {
        String msg = eventPrivateMessage.getMsg();
        //私聊消息

    }

    @Override
    public List<String> subClient() {
        //客户端

        return null;
    }
}
